﻿using System;
using System.Collections.Generic;
using System.Text;
using DuckGame1._0.Fly;
using DuckGame1._0.Quack;

namespace DuckGame1._0.Duck
{
    //木头鸭
    public class WoodenDuck:DuckBase
    {
        public override string ToString()
        {
            return "这是木头鸭";
        }
        public WoodenDuck()
        {
            //不会飞
            base.FlyBehavior = new FlyNoWay();
            //不会叫
            base.QuackBehavior = new QuackNoWay();
        }
    }
}
